package rpc_1.Impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import rpc_1.interfaces.HelloService;
import rpc_1.object.HelloObject;
import rpc_netty.Annotation.Service;



public class HelloServiceImpl implements HelloService {
    private static final Logger logger= LoggerFactory.getLogger(HelloServiceImpl.class);

    public String hello(HelloObject object) {
        logger.info("receive:{}",object.getMessage());
        return "id="+(object.getId()+1)+object.getMessage()+"[echo] ";
    }
}
